package com.itools.core.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product")
public class ProductController {

    @PreAuthorize("hasAnyAuthority('selectProductInfoById')")
    @RequestMapping("/selectProductInfoById")
    public String selectProductInfoById(long id) {

        return "获取产品信息成功"+id;
    }
}